﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace FksAutoTask.App_Code
{
    public class WinClient : Form
    {
        /// <summary>
        /// 数据库及日志初始化
        /// </summary>
        public void Init()
        {
            string _db_file = Application.StartupPath + "\\task.dll";
            string _log_path = Application.StartupPath + "\\log\\";
            Fks.Log.sLog.Default.Init(Fks.Log.sLog.LogApdate.LocalFile, _log_path);
            Fks.DataBase.DbBase.Connstring.set_SQLite("Default", _db_file, new App_Code.Comm().get_Vcode(string.Empty, DateTime.Now.AddDays(1)));
        } 
    }
}
